package com.bean;

import java.io.Serializable;
import java.math.BigDecimal;

public class Prop_config implements Serializable {
    private Integer id;

    private Float firstprop;

    private Float secondprop;

    private Float thirdprop;

    private Float agencyprop;

    private Integer cityid;

    private BigDecimal firstpush;

    private BigDecimal secondpush;

    private BigDecimal thirdpush;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Float getFirstprop() {
        return firstprop;
    }

    public void setFirstprop(Float firstprop) {
        this.firstprop = firstprop;
    }

    public Float getSecondprop() {
        return secondprop;
    }

    public void setSecondprop(Float secondprop) {
        this.secondprop = secondprop;
    }

    public Float getThirdprop() {
        return thirdprop;
    }

    public void setThirdprop(Float thirdprop) {
        this.thirdprop = thirdprop;
    }

    public Float getAgencyprop() {
        return agencyprop;
    }

    public void setAgencyprop(Float agencyprop) {
        this.agencyprop = agencyprop;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    public BigDecimal getFirstpush() {
        return firstpush;
    }

    public void setFirstpush(BigDecimal firstpush) {
        this.firstpush = firstpush;
    }

    public BigDecimal getSecondpush() {
        return secondpush;
    }

    public void setSecondpush(BigDecimal secondpush) {
        this.secondpush = secondpush;
    }

    public BigDecimal getThirdpush() {
        return thirdpush;
    }

    public void setThirdpush(BigDecimal thirdpush) {
        this.thirdpush = thirdpush;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Prop_config other = (Prop_config) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFirstprop() == null ? other.getFirstprop() == null : this.getFirstprop().equals(other.getFirstprop()))
            && (this.getSecondprop() == null ? other.getSecondprop() == null : this.getSecondprop().equals(other.getSecondprop()))
            && (this.getThirdprop() == null ? other.getThirdprop() == null : this.getThirdprop().equals(other.getThirdprop()))
            && (this.getAgencyprop() == null ? other.getAgencyprop() == null : this.getAgencyprop().equals(other.getAgencyprop()))
            && (this.getCityid() == null ? other.getCityid() == null : this.getCityid().equals(other.getCityid()))
            && (this.getFirstpush() == null ? other.getFirstpush() == null : this.getFirstpush().equals(other.getFirstpush()))
            && (this.getSecondpush() == null ? other.getSecondpush() == null : this.getSecondpush().equals(other.getSecondpush()))
            && (this.getThirdpush() == null ? other.getThirdpush() == null : this.getThirdpush().equals(other.getThirdpush()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFirstprop() == null) ? 0 : getFirstprop().hashCode());
        result = prime * result + ((getSecondprop() == null) ? 0 : getSecondprop().hashCode());
        result = prime * result + ((getThirdprop() == null) ? 0 : getThirdprop().hashCode());
        result = prime * result + ((getAgencyprop() == null) ? 0 : getAgencyprop().hashCode());
        result = prime * result + ((getCityid() == null) ? 0 : getCityid().hashCode());
        result = prime * result + ((getFirstpush() == null) ? 0 : getFirstpush().hashCode());
        result = prime * result + ((getSecondpush() == null) ? 0 : getSecondpush().hashCode());
        result = prime * result + ((getThirdpush() == null) ? 0 : getThirdpush().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", firstprop=").append(firstprop);
        sb.append(", secondprop=").append(secondprop);
        sb.append(", thirdprop=").append(thirdprop);
        sb.append(", agencyprop=").append(agencyprop);
        sb.append(", cityid=").append(cityid);
        sb.append(", firstpush=").append(firstpush);
        sb.append(", secondpush=").append(secondpush);
        sb.append(", thirdpush=").append(thirdpush);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}